/* 
 * File:   main.h
 * Author: cow
 *
 * Created on February 28, 2011, 11:22 AM
 */

#ifndef _MAIN_H
#define	_MAIN_H

//includes-----------------------------
#include "unit.h"
#include "noguiInterface.h"
#include "base.h"
//#include <gtkmm.h>
//#include <cairomm/cairomm.h>
//#include <cairomm/context.h>


//defines------------------------------
enum direction{
    d_up,
    d_dn,
    d_lft,
    d_rgt
};
/*
#define dbgMsg true

#define tWid 40
#define tHgt 40
#define scrollToleranceVert 2
#define scrollToleranceWid 2
 * */
namespace maintypes{
//prototypes---------------------------
int main(int argc, char* argv[]);
class icon;
class iconOverlay;
/*
//definitions--------------------------
class iconOverlay{
public:
    iconOverlay();
    ~iconOverlay();
    void draw(Cairo::RefPtr<Cairo::Context> cr, int x, int y);
protected:
private:
    icon *icn[50][50];
    int size[2];
};
class drawingWin : public Gtk::DrawingArea{
public:
    drawingWin();
    virtual ~drawingWin();
    void scroll();
    void scroll(direction dir, int dist);
    void draw();
    bool keypress(GdkEventKey *key);
protected:
    virtual bool on_expose_event(GdkEventExpose *event);
    virtual bool on_key_press_event(GdkEventKey *event);
private:
    iconOverlay icons;
    int cur[2];
    int offset[2];
};

class mainWin : public Gtk::Window{
public:
    mainWin();
    ~mainWin();
protected:
    virtual bool on_key_press_event(GdkEventKey* key);
private:
    drawingWin drawme;
};

class icon{
public:
    icon();
    ~icon();
    virtual void draw(Cairo::RefPtr<Cairo::Context> cr, int x, int y);
protected:
private:
};

class iconone : public icon{
public:
    virtual void draw(Cairo::RefPtr<Cairo::Context> cr, int x, int y);
};

class icontwo : public icon{
public:
    virtual void draw(Cairo::RefPtr<Cairo::Context> cr, int x, int y);
};
 * */
};
#endif	/* _MAIN_H */

